package com.yuandian.constant;

/**
 * <p>
 * 常量
 * </p>
 *
 * @author: tangqingchun
 * @date: 2020/07/02
*/
public class RedisKey {
    /**
     * 默认导出文件存放目录
     */
    public static final String EXPORT_PATH = System.getProperty("user.dir") + "/export/excel";
    /**
     * Date格式化字符串
     */
    public static final String DATE_FORMAT = "yyyy-MM-dd";
    /**
     * DateTime格式化字符串
     */
    public static final String DATETIME_FORMAT = "yyyy-MM-dd HH:mm:ss";
    /**
     * Time格式化字符串
     */
    public static final String TIME_FORMAT = "HH:mm:ss";

	/**
     * 当前模块, 前端展示与后台配置在udcore项目初始化加载参数配置时加载, 默认为前端展示模块
     */
    public static String CURRENT_MODULE = "BPM_WEB_MAIN";
    /**
     * 空字符串
     */
    public static final String EMPTY_STRING = "";

    /**
     * 下划线
     */
    public static final char SEPARATOR = '_';

    /**
     * UTF-8 字符集
     */
    public static final String UTF8 = "UTF-8";

    /**
     * GBK 字符集
     */
    public static final String GBK = "GBK";

    /**
     * http请求
     */
    public static final String HTTP = "http://";

    /**
     * https请求
     */
    public static final String HTTPS = "https://";

    /**
     * 资源映射路径 前缀
     */
    public static final String RESOURCE_PREFIX = "/profile";

    /**
	 * 最大可配置系统数量
	 */
    public static final String SYSTEM_MAX = "SYSTEM_LIMIT_MAX";

	/**
	 * 最大可配置业务数量
	 */
    public static final String BUSINESS_MAX = "business.limit.max";


	/**
	 * key
	 */
	public static final String SYS_MODULE_CONFIG = "sys_module_config:";
    /**
     * 专属指标导入模板文件路径
     */
    public static final String IMPORT_INDICATOR_TEMPLATE_PATH = "static/excel/import_indicator.xlsx";

    /**
     * 专属指标导入模板文件路径
     */
    public static final String IMPORT_RESULT_CODE_TEMPLATE_PATH = "static/excel/import_result_code.xlsx";

    /**
     * 临时文件目录
     */
    public static final String TEMP_FILE_DIR_PATH = "static/temp/";

    /**
     * 定义两个空格，用于Excel导出规范格式(需求：819)
     */
    public static final String DOUBLE_SPACE = "  ";

    /**
     * 定义Excel 中每个sheet的最大行数(目前用于3.0的 详单查询 和 基础告警查询 -2022022)
     */
    public static int SHEET_MAX_ROW = 66000;

	/**
	 * 分布式锁key
	 */
	public static final String LOCK_KEY = "lockKey";

	/**
	 * 配置管理-业务服务资源对应的要显示的专属指标
	 */
	public static String MANAGEMENT_RESOURCE_INDICATOR_MAP = "management:resource_indicator_map";

	/**
	 * 配置管理-业务对应的要显示的专属指标
	 */
	public static String MANAGEMENT_BUSINESS_INDICATOR_MAP = "management:business_indicator_map";

	/**
	 * 端到端关联专属指标Map 存放在redis的 key
	 */
	public static final String SEGMENT_CONNECT_EXCINDICATORS_MAP = "management:segment_indicator_map";
}
